package cn.nb12.xbox.reqpo;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class AreaEdit implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@NotNull(message="{validation.common.code.0000000001}")//主键不能为空
	private String id;//主键
	
	@NotNull(message="{validation.common.code.0000000005}")
	@Pattern(regexp="^[A-Z]{3}$",message="{validation.common.code.0000000005}")
	private String currency;// 币种
	
	@NotNull(message="{validation.common.code.0000000002}")
	@Pattern(regexp="^[a-z]{2}-[A-Z]{2}$",message="{validation.common.code.0000000002}")
	private String code;// 国家编码
	
	@NotNull(message="{validation.common.code.0000000003}")
	private String cname;// 国家名称中文
	
	private String remarks;// 备注
	
	@NotNull(message="{validation.common.code.0000000004}")
	private String name;// 国家名称英文
	public String getCurrency() {
		return currency;
	}
	public void setCurrency(String currency) {
		this.currency = currency;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public AreaEdit() {
		super();
	}

}
